package javaJob.exercise;

public class exercise3 {
    int a = 1;
    int b = 9;
    char c = '1';
    char d = '9';
    boolean e;
    public static void main(String[] args) {
        int a = 1;
        int b = 9;
        char c = '1';
        char d = '9';
        char f = 'a';
        char g = 'b';
        boolean e;
        System.out.println(fun(a,b,c,d,g,f));
    }

    static boolean fun(int a,int b,char c,char d,char g,char f){
//        if (d-c==b-a){
//            return true;//证明两个数字字符相减会转成整数类型
//        }
        if (g-f==1){
            return true;//证明 若两个字符串非数字，则会转化成对应ASCII码相减
        }
        else {
            return false;
        }
    }
}
